<% title "#{@console[:name]}" %>
<%= title_actions(
        button_group(link_to(_("Ctrl-Alt-Del"), "#", :id => "sendCtrlAltDelButton", :onclick => 'tfm.spice.sendCtrlAltDel()', :class => "btn btn-default"),
                     if @host && authorized_for(hash_for_host_path(@host))
                       link_to(_("Back to host"), current_host_details_path(@host), :title => _("Back to host"), :class => 'btn btn-default')
                     end
        ),
        documentation_button("7.1NoVNC",
          {:id => "troubleshootingButton", :class => "btn btn-default"})
        ) %>
<%= content_tag(:div, :id =>'spice-area', :data => spice_data_attributes(@console)) do %>
  <div class="console-status">
    <div id="spice-status" class="col-md-12 label" data-host="<%= @console[:name] %>"><%= _("Connecting (unencrypted) to: %s") % @console[:name] %></div>
  </div>
  <div id="spice-screen" class="console-screen"> </div>
<% end %>
<% content_for(:javascripts) do -%>
  <script type="text/javascript">
    tfm.spice.startSpice()
  </script>
<% end -%>
